package com.lk.mapper;

import com.lk.bean.Teacher;
import com.lk.request.LoginRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TeacherMapper {

    Teacher login(LoginRequest loginRequest);

    int updatePassWord(@Param("id") Integer id, @Param("password") String Password);

    int delete(Integer[] ids);

    Teacher findByName(String name);

    int addTeacher(Teacher teacher);

    int updateTeacher(Teacher teacher);

    List<Teacher> getTeacherList(Teacher teacher);
}
